<!DOCTYPE html>
<html lang="en">
<head>
    {include file="common/meta" /}
    <!-- Title -->
    <title>{:brandConfig('site.system_name')}</title>
</head>

<body class="page-header-fixed page-sidebar-fixed" data-theme="{:session('admin_theme')}">


<div class="lyear-layout-web">

    <!-- Page Container -->
    <div class=" lyear-layout-container page-container">

        <!-- Page Sidebar -->

        <!--左侧导航-->
        <aside class="lyear-layout-sidebar ">

            <!-- logo -->
            <div id="logo" class="sidebar-header">
                <a href="">{:brandConfig('site.system_name')}</a>
            </div>
            <div class="lyear-layout-sidebar-scroll">

                <nav class="sidebar-main secondary-sidebar-menu">
                    <ul class="nav nav-drawer accordion-menu">
                        {foreach $menu as $k1 => $m1}
                        <li class="nav-item nav-item-has-subnav">
                            {if isset($m1['childlist'])}
                            <a href="javascript:void(0)"><i class="mdi {$m1.icon}"></i> {$m1.title}</a>
                            {else /}
                            <a class="z_frame" href="{$m1.url}"><i class="mdi {$m1.icon}"></i> {$m1.title}</a>
                            {/if}
                            {if isset($m1['childlist'])}
                            <ul class="nav nav-subnav sub-menu">
                                {foreach $m1['childlist'] as $k2 => $m2}
                                {if !empty($m2['childlist'])}
                                <li class="nav-item nav-item-has-subnav">
                                    {else /}
                                <li class="">
                                    {/if}

                                    {if !empty($m2['childlist'])}
                                    <a href="javascript:void(0)">{$m2.title | raw}</a>

                                    <ul class="nav nav-subnav sub-menu">
                                        {foreach $m2.childlist as $m3}
                                        <li><a class="z_frame" href="{$m3.url}">{$m3.title | raw}</a></li>
                                        {/foreach}
                                    </ul>
                                    {else/}
                                    <a class="z_frame" href="{$m2.url}">{$m2.title | raw}</a>
                                    {/if}

                                </li>
                                {/foreach}
                            </ul>
                            {/if}
                        </li>
                        {/foreach}

                    </ul>
                </nav>

                <div class="sidebar-footer">

                </div>
            </div>

        </aside>
        <!--End 左侧导航-->

        <!--头部信息-->
        <header class="lyear-layout-header">

            <nav class="navbar navbar-default">
                <div class="topbar">

                    <div class="topbar-left">
                        <div class="lyear-aside-toggler">
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                        </div>

                        <div class="collapse navbar-collapse justify-content-between" id="bs-example-navbar-collapse-1">
                            <ul class="nav  mr-auto page-tabs"></ul>
                        </div>
                    </div>

                    <ul class="topbar-right">
                        <li class="dropdown dropdown-profile">
                            <a href="javascript:void(0)" data-toggle="dropdown">
                                <img class="img-avatar img-avatar-48 m-r-10" src="{:session('admin.avatar')}" alt=""/>
                                <span>{:session('admin.nickname')} <span class="caret"></span></span>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-right">
                                <li> <a target="_blank" href="{:url('auth.admin/profile')->build()}"><i class="mdi mdi-account"></i> 个人信息</a>
                                </li>
                                <li><a href="{:url('index/clean')->build()}"><i class="mdi mdi-delete"></i> 清空缓存</a>
                                </li>
                                <li class="divider"></li>
                                <li><a href="{:url('index/logout')->build()}"><i class="mdi mdi-logout-variant"></i>
                                    退出登录</a></li>
                            </ul>
                        </li>
                        <!--切换主题配色-->
                        <li class="dropdown dropdown-skin" style="display: none">
                            <span data-toggle="dropdown" class="icon-palette"><i class="mdi mdi-palette"></i></span>
                            <ul class="dropdown-menu dropdown-menu-right" data-stopPropagation="true">
                                <li class="drop-title"><p>主题</p></li>
                                <li class="drop-skin-li clearfix">
                  <span class="inverse">
                    <input type="radio" name="site_theme"  value="default" id="site_theme_1" checked>
                    <label for="site_theme_1"></label>
                  </span>
                                    <span>
                    <input type="radio" name="site_theme" value="dark" id="site_theme_2">
                    <label for="site_theme_2"></label>
                  </span>
                                    <span>
                    <input type="radio" name="site_theme" value="translucent" id="site_theme_3">
                    <label for="site_theme_3"></label>
                  </span>
                                </li>


                            </ul>
                        </li>
                        <!--切换主题配色-->
                    </ul>

                </div>
            </nav>

        </header>
        <!--End 头部信息-->

        <!-- Page Inner -->
        <main class="lyear-layout-content">
            <div class="page-inner no-page-title " id="content-main"></div>

        </main>

    </div><!-- /Page Container -->

</div>


{include file="common/script" /}


<script src="/static/backend/js/admin.js"></script>

</body>
</html>
